<?php

namespace App\Http\Controllers\Api;

use App\Http\Resources\SourceCollection;
use App\model\Source;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class SourceController extends Controller
{
    public function index(){
        $source=Source::all();
        return new SourceCollection($source);
    }
}
